package org.cybertech.dubbo.provider.service;

import java.util.List;

import org.cybertech.dubbo.api.entity.AddressEntity;
import org.cybertech.dubbo.api.service.IAddressService;
import org.cybertech.dubbo.provider.annotation.TargetDataSource;
import org.cybertech.dubbo.provider.mapper.AddressMapper;
import org.springframework.beans.factory.annotation.Autowired;
import com.alibaba.dubbo.config.annotation.Service;


@Service(protocol="dubbo-hessian")
//@org.springframework.stereotype.Service
public class AddressService implements IAddressService{

	@Autowired
	private AddressMapper addressMapper;
	
	/**
	 * 查询地址信息
	 */
	@TargetDataSource(name="ds1")
	@Override
	public List<AddressEntity> findAllList() {
		return addressMapper.findAllList();
	}
	
}
